package com.wsd.jing.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wsd.jing.dto.LoginDTO;
import com.wsd.jing.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * All rights Reserved, Designed By www.tom.com
 *
 * @author tom
 * @version 1.0.0
 * @projectName: jing
 * @packageName: com.wsd.jing.service
 * @className: ILoginService
 * @description 登录服务类
 * @createDate 2022/11/14 11:23
 * @copyright 2022/11/14 11:23 www.tom.com Inc. All rights reserved.
 */
public interface ILoginService extends IService<User> {

    /**
     * @param loginDto:登录参数
     * @param httpServletRequest:请求参数
     * @return SaTokenInfo:token信息
     * @author tom
     * @description 登录
     * @createDate 2022/11/15 15:00
     */
    SaTokenInfo login(LoginDTO loginDto, HttpServletRequest httpServletRequest);

    /**
     * @param :
     * @return Map
     * @author tom
     * @description 获取验证码
     * @createDate 2022/11/29 18:23
     */
    Map getCaptcha();
}
